package org.hxyjs.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author 
 */
public class Orderrecord implements Serializable {
    private String orrno;

    private String prno;

    private String pno;

    private String orrname;

    private String orbegindate;

    private String orrfinshdate;

    private String orrprice;

    private String orrpayment;

    private Integer orrpaymenttype;

    private String orrreceivingaddress;

    private String orrdescribe;

    private Integer orrstate;

    private List<Orderdetails> orderdetails;

    public List<Orderdetails> getOrderdetails() {
        return orderdetails;
    }

    public void setOrderdetails(List<Orderdetails> orderdetails) {
        this.orderdetails = orderdetails;
    }

    private static final long serialVersionUID = 1L;

    public String getOrrno() {
        return orrno;
    }

    public void setOrrno(String orrno) {
        this.orrno = orrno;
    }

    public String getPrno() {
        return prno;
    }

    public void setPrno(String prno) {
        this.prno = prno;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getOrrname() {
        return orrname;
    }

    public void setOrrname(String orrname) {
        this.orrname = orrname;
    }

    public String getOrbegindate() {
        return orbegindate;
    }

    public void setOrbegindate(String orbegindate) {
        this.orbegindate = orbegindate;
    }

    public String getOrrfinshdate() {
        return orrfinshdate;
    }

    public void setOrrfinshdate(String orrfinshdate) {
        this.orrfinshdate = orrfinshdate;
    }

    public String getOrrprice() {
        return orrprice;
    }

    public void setOrrprice(String orrprice) {
        this.orrprice = orrprice;
    }

    public String getOrrpayment() {
        return orrpayment;
    }

    public void setOrrpayment(String orrpayment) {
        this.orrpayment = orrpayment;
    }

    public Integer getOrrpaymenttype() {
        return orrpaymenttype;
    }

    public void setOrrpaymenttype(Integer orrpaymenttype) {
        this.orrpaymenttype = orrpaymenttype;
    }

    public String getOrrreceivingaddress() {
        return orrreceivingaddress;
    }

    public void setOrrreceivingaddress(String orrreceivingaddress) {
        this.orrreceivingaddress = orrreceivingaddress;
    }

    public String getOrrdescribe() {
        return orrdescribe;
    }

    public void setOrrdescribe(String orrdescribe) {
        this.orrdescribe = orrdescribe;
    }

    public Integer getOrrstate() {
        return orrstate;
    }

    public void setOrrstate(Integer orrstate) {
        this.orrstate = orrstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Orderrecord other = (Orderrecord) that;
        return (this.getOrrno() == null ? other.getOrrno() == null : this.getOrrno().equals(other.getOrrno()))
            && (this.getPrno() == null ? other.getPrno() == null : this.getPrno().equals(other.getPrno()))
            && (this.getPno() == null ? other.getPno() == null : this.getPno().equals(other.getPno()))
            && (this.getOrrname() == null ? other.getOrrname() == null : this.getOrrname().equals(other.getOrrname()))
            && (this.getOrbegindate() == null ? other.getOrbegindate() == null : this.getOrbegindate().equals(other.getOrbegindate()))
            && (this.getOrrfinshdate() == null ? other.getOrrfinshdate() == null : this.getOrrfinshdate().equals(other.getOrrfinshdate()))
            && (this.getOrrprice() == null ? other.getOrrprice() == null : this.getOrrprice().equals(other.getOrrprice()))
            && (this.getOrrpayment() == null ? other.getOrrpayment() == null : this.getOrrpayment().equals(other.getOrrpayment()))
            && (this.getOrrpaymenttype() == null ? other.getOrrpaymenttype() == null : this.getOrrpaymenttype().equals(other.getOrrpaymenttype()))
            && (this.getOrrreceivingaddress() == null ? other.getOrrreceivingaddress() == null : this.getOrrreceivingaddress().equals(other.getOrrreceivingaddress()))
            && (this.getOrrdescribe() == null ? other.getOrrdescribe() == null : this.getOrrdescribe().equals(other.getOrrdescribe()))
            && (this.getOrrstate() == null ? other.getOrrstate() == null : this.getOrrstate().equals(other.getOrrstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrrno() == null) ? 0 : getOrrno().hashCode());
        result = prime * result + ((getPrno() == null) ? 0 : getPrno().hashCode());
        result = prime * result + ((getPno() == null) ? 0 : getPno().hashCode());
        result = prime * result + ((getOrrname() == null) ? 0 : getOrrname().hashCode());
        result = prime * result + ((getOrbegindate() == null) ? 0 : getOrbegindate().hashCode());
        result = prime * result + ((getOrrfinshdate() == null) ? 0 : getOrrfinshdate().hashCode());
        result = prime * result + ((getOrrprice() == null) ? 0 : getOrrprice().hashCode());
        result = prime * result + ((getOrrpayment() == null) ? 0 : getOrrpayment().hashCode());
        result = prime * result + ((getOrrpaymenttype() == null) ? 0 : getOrrpaymenttype().hashCode());
        result = prime * result + ((getOrrreceivingaddress() == null) ? 0 : getOrrreceivingaddress().hashCode());
        result = prime * result + ((getOrrdescribe() == null) ? 0 : getOrrdescribe().hashCode());
        result = prime * result + ((getOrrstate() == null) ? 0 : getOrrstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orrno=").append(orrno);
        sb.append(", prno=").append(prno);
        sb.append(", pno=").append(pno);
        sb.append(", orrname=").append(orrname);
        sb.append(", orbegindate=").append(orbegindate);
        sb.append(", orrfinshdate=").append(orrfinshdate);
        sb.append(", orrprice=").append(orrprice);
        sb.append(", orrpayment=").append(orrpayment);
        sb.append(", orrpaymenttype=").append(orrpaymenttype);
        sb.append(", orrreceivingaddress=").append(orrreceivingaddress);
        sb.append(", orrdescribe=").append(orrdescribe);
        sb.append(", orrstate=").append(orrstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}